# coding: UTF-8
# Filename : batch_to_db.py
# Company : imedia
# Author : rose
# -*-coding:utf-8 -*-
import sys,datetime
import os,commands
import utils

python_cmd = '/usr/bin/python %s %s'

day_num = 120

def batchLogic(fineName):
    days = utils.getDaysByNum(day_num)
    for day in days:
        cmd = python_cmd % (fineName, day)
        (a, b) = commands.getstatusoutput(cmd)
        print b

batchLogic('report_phone.py')
batchLogic('report_reg.py')
batchLogic('stat_vistor_signup.py')
